package com.wmc.mapper;

import com.wmc.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LoginMapper {

    @Select("SELECT id, username, name FROM emp WHERE username = #{username} AND password = #{password}")
    List<Emp> list(@Param("username") String username, @Param("password") String password);
}

